package com.gao.modules.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gao.base.Result;
import com.gao.modules.user.pojo.SysUser;
import com.gao.modules.user.vo.SysUserVo;
import com.gao.modules.userdepart.pojo.SysUserDepart;
import com.gao.modules.userrole.pojo.SysUserRole;
import org.springframework.beans.BeanUtils;


public interface SysUserService extends IService<SysUser> {

    Result insert(SysUser sysUser, SysUserDepart sysUserDepart, SysUserRole sysUserRole);

    Result deleteUserById(String UserId);

    Result updateUserById(SysUser sysUser, SysUserDepart sysUserDepart, SysUserRole sysUserRole);

    IPage<SysUserVo> queryDepartAllUser(String departName, Page page);

    SysUserVo getUserDetailForLogin(SysUser user);




}
